<?php
// rsgallery2 api template extension for calendar detail
defined('_JEXEC') or die('Restricted Access');


?>
<script type="text/javascript">
	function closeWin($id)
	{
		window.parent.document.getElementById('sbox-window').close();
		window.open('http://192.150.1.246/stable/index.php?option=com_rsgallery2&gid='+$id);
	}
</script>

<div style="clear:both"></div>
<?php
	foreach($this->gallery as $k=>$gallery){
		echo '<div>'.$gallery;
		echo '<a href="#" onclick="closeWin('.$k.')" >Go to Photo Gallery</a></div>';
	}//end foreach this->gallery
?>
